/**
 * Created by mapbar_front on 2019/7/26.
 */
import React,{Component,Suspense} from 'react';
import MyErrorBoundary from './../../components/MyErrorBoundary';
const Text = React.lazy(()=>import('./../../components/Text'));
const Input = React.lazy(()=>import('./../../components/Input'));

class Home extends Component{
    render(){
        return(
            <div>
                <MyErrorBoundary>
                    <Suspense fallback={<div>正在加载中。。。</div>}>
                        <Text/>
                        <Input/>
                    </Suspense>
                </MyErrorBoundary>
            </div>
        )
    }
}
export default Home;
